﻿<local:DocumentBase x:Class="WPFExcelReport.CAD2INTEX"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:cad="clr-namespace:CADInterface;assembly=CADInterface"
                    xmlns:db="clr-namespace:CAD2INTEX"
                    xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase" 
                    xmlns:dat="clr-namespace:System.Windows.Data;assembly=PresentationFramework"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    Loaded="Window_Loaded" 
                    FontSize="16" 
                    Background="White"  
                    >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <db:SETCAD2INTEX  x:Key="setData" />
        <cad:DSTCADDB  x:Key="dbcad" />
        <cad:DSTCADDB  x:Key="SetJob" />
        <CollectionViewSource   x:Key="vwWDECK" Source="{Binding Path=WDECK,Source={StaticResource setData}}" />
        <CollectionViewSource   x:Key="vwVKPOS" Source="{Binding Path=VKPOS,Source={StaticResource setData}}" />
        <CollectionViewSource   x:Key="vwWASTAMM" Source="{Binding Path=WASTAMM,Source={StaticResource setData}}" />
        <CollectionViewSource   x:Key="vwWAFARBEN" Source="{Binding Path=WAFARBEN,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwBSSATZ" Source="{Binding Path=BSSATZ,Source={StaticResource setData}}" />
        <CollectionViewSource   x:Key="vwBHSATZ" Source="{Binding Path=BHSATZ,Source={StaticResource setData}}" />
        <CollectionViewSource   x:Key="vwBSFARB" Source="{Binding Path=BSFARB,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwWTGEW" Source="{Binding Path=WTGEW,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwWASTKE" Source="{Binding Path=WASTKE,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwBASTKE" Source="{Binding Path=BASTKE,Source={StaticResource setData}}" />
        <CollectionViewSource   x:Key="vwWASTPASS" Source="{Binding Path=WASTPASS,Source={StaticResource setData}}" />
        <CollectionViewSource   x:Key="vwWABIND" Source="{Binding Path=WABIND,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwWTEINZ" Source="{Binding Path=WTEINZ,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwWTPASS" Source="{Binding Path=WTPASS,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwWTSCHUSS" Source="{Binding Path=WTSCHUSS,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwWADART" Source="{Binding Path=WADART,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwBASTGA" Source="{Binding Path=BASTGA,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwWASTGA" Source="{Binding Path=WASTGA,Source={StaticResource setData}}" />
        <CollectionViewSource  x:Key="vwTechMaster" Source="{Binding Path=TechMaster,Source={StaticResource dbcad}}"/>
        <CollectionViewSource  x:Key="vwTechDetail" Source="{Binding Path=TechDetail,Source={StaticResource dbcad}}"/>
        <CollectionViewSource  x:Key="vwTechBeaming" Source="{Binding Path=TechBeaming,Source={StaticResource dbcad}}"/>
        <CollectionViewSource  x:Key="vwFinishingParam" Source="{Binding Path=FinishingParam,Source={StaticResource dbcad}}"/>
        <CollectionViewSource  x:Key="vwFinishingStepName" Source="{Binding Path=FinishingStepName,Source={StaticResource dbcad}}"/>
        <CollectionViewSource  x:Key="vwFinishingTechDetail" Source="{Binding Path=FinishingTechDetail,Source={StaticResource dbcad}}"/>
        <CollectionViewSource  x:Key="vwFinishingTechMaster" Source="{Binding Path=FinishingTechMaster,Source={StaticResource dbcad}}"/>
        <CollectionViewSource  x:Key="vwFormulaInfo" Source="{Binding Path=FormulaInfo,Source={StaticResource dbcad}}"/>
        <CollectionViewSource  x:Key="vwLogInfo" Source="{Binding Path=LogInfo,Source={StaticResource SetJob}}"/>
        <CollectionViewSource  x:Key="vwThreadCountInfo" Source="{Binding Path=ThreadCountInfo,Source={StaticResource dbcad}}"/>
        <CollectionViewSource  x:Key="vwWeavingMachineInfo" Source="{Binding Path=WeavingMachineInfo,Source={StaticResource dbcad}}"/>
    </local:DocumentBase.Resources> 
     <StackPanel    >  
     <Expander Name="expLog" ExpandDirection="Left" IsExpanded="True">
                        <WrapPanel Name="zoneCommand" Height="34" Margin="0,0,0,6">
                            <Label   Content="系统" Width="40" Margin="0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                            <TextBox   Name="txtMANDANT" MaxLength="2" Width="40" Margin="10,0,0,0" Text="00" HorizontalAlignment="Left" Background="Pink" FontSize="18" />
                            <Label  Content="语言" Width="40" Margin="0,0,0,0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                            <TextBox   IsReadOnly="True" Name="txtSPRACHKZ" Width="40" Margin="0,0,0,0" Text="" MaxLength="1" HorizontalAlignment="Left" Background="Pink" FontSize="18" />
                            <Label  Content="用户名" Width="60" Margin="10,0,0,0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                            <TextBox  Name="txtUserID" Width="80" Margin="10,0,0,0" Text="" HorizontalAlignment="Left" Background="Yellow" FontSize="18" MaxLength="8" AcceptsTab="True" CharacterCasing="Upper" KeyboardNavigation.TabIndex="0" />
                            <Label Content="密码" Width="40" Margin="10,0,0,0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                            <PasswordBox  Name="txtPassword" Width="80" Margin="10,0,0,0" HorizontalAlignment="Left" Background="Yellow" FontSize="18" KeyboardNavigation.TabIndex="1" />
                            <Button  Height="Auto" Margin="10,0,0,0" Name="btnLogIn" Width="34" Click="btnLogIn_Click" KeyboardNavigation.TabIndex="2" IsDefault="True">
                                <Button.Background>
                                    <ImageBrush  ImageSource="/IntexReportClient;component/Images/User.png" />
                                </Button.Background>
                            </Button>
                            <Button  Height="Auto" Margin="10,0,0,0" Name="btnReloadCon" Width="34" Click="btnReloadCon_Click" KeyboardNavigation.TabIndex="2" IsDefault="True">
                                <Button.Background>
                                    <ImageBrush  ImageSource="/IntexReportClient;component/Images/Compact Disk.png" />
                                </Button.Background>
                </Button>
                <Button  Height="Auto" Margin="10,0,0,0" Name="btnResetSetDispo" Width="Auto" Click="btnResetSetDispo_Click" KeyboardNavigation.TabIndex="2" IsDefault="True">
                  重置参数
                </Button>                
                <TextBlock  Name="txtLogIn" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left" Background="White" FontSize="14" KeyboardNavigation.TabIndex="1" />
                        </WrapPanel>
                    </Expander>
        <Expander IsExpanded="False">
            <StackPanel IsEnabled="False" Visibility="Hidden" DataContext="{Binding Source={StaticResource ResourceKey=vwWASTAMM}}">
            <WrapPanel >
                    <TextBlock Name="txtSetDispo">HWD01</TextBlock>
                    <TextBlock  >成品信息:</TextBlock>
                    <Label  Margin="20,0,0,0"  Background="Gray" Content="品种:" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                    <TextBox Grid.Column="1" Text="{Binding Path=WAART, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="Auto" MinWidth="180" CharacterCasing="Upper"/>
                    <TextBlock   Text="/" HorizontalAlignment="Left" VerticalAlignment="Center" />
                    <TextBox   Grid.Column="1" Text="{Binding Path=WAVAR, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="Auto" MinWidth="40" CharacterCasing="Upper" />
                    <Label Background="Gray" Content="计划品名:" HorizontalAlignment="Left" VerticalAlignment="Center" />
                    <ComboBox  Grid.Column="1" HorizontalAlignment="Left" IsEditable="True" StaysOpenOnEdit="True" IsTextSearchEnabled="True" Text="{Binding Path=WADART, Mode=TwoWay, Source={StaticResource ResourceKey=vwWASTAMM}}" DisplayMemberPath="WADART" SelectedValuePath="WADART" ItemsSource="{Binding  Source={StaticResource ResourceKey=vwWADART}}" VerticalAlignment="Center" Width="185">
                    </ComboBox>
                    <TextBlock   Text="/" HorizontalAlignment="Left" VerticalAlignment="Center" />
                    <TextBox  Grid.Column="1" Text="{Binding Path=WADVAR, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="Auto" MinWidth="40" />
                </WrapPanel>
                <WrapPanel   Margin="86,0,0,0">
                    <Label  Content="描述:" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                    <TextBox  MaxLength="40" Text="{Binding Path=WABEZ, Mode=TwoWay, Converter={StaticResource ResourceKey=gb2312}}" 
                                      VerticalAlignment="Center" Width="330" MaxLines="1"  Background="#FFEBA9A9"
                                      >
                    </TextBox>
                    <Label Content="备注:" HorizontalAlignment="Left" VerticalAlignment="Center" />
                    <TextBox   MaxLength="40" Text="{Binding Path=WARBEM, Mode=TwoWay, Converter={StaticResource ResourceKey=gb2312}}" 
                                       VerticalAlignment="Center" Width="330" MaxLines="1"
                                       Background="#FFEBA9A9" />
                </WrapPanel>
                <WrapPanel  >
                    <Grid Margin="86,0,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition   Width="1*" />
                            <ColumnDefinition   Width="1*" />
                        </Grid.ColumnDefinitions>
                        <Label Content="经密:" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Text="{Binding Path=WAFFDDIK, Mode=TwoWay, Converter={StaticResource ResourceKey=d100}}" VerticalAlignment="Center" Width="60" />
                    </Grid>
                    <Grid   Margin="0,0,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition   Width="1*" />
                            <ColumnDefinition   Width="1*" />
                        </Grid.ColumnDefinitions>
                        <Label Content="成品纬密:" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <TextBox Grid.Column="1" Text="{Binding Path=WAFFDDIS, Mode=TwoWay,  Converter={StaticResource ResourceKey=d100}}" VerticalAlignment="Center" Width="60" />
                    </Grid>

                    <TextBlock >(</TextBlock>
                    <Label  Content="{Binding Path=WAFDDIM}" VerticalAlignment="Center" Width="40" Height="25" />
                    <TextBlock >)</TextBlock>
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="1*" />
                            <ColumnDefinition  Width="1*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel  Grid.Column="0">
                        </WrapPanel>
                        <WrapPanel  Grid.Column="1">
                        </WrapPanel>
                    </Grid>
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="1*" />
                            <ColumnDefinition  Width="1*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel  Grid.Column="0">
                        </WrapPanel>
                        <WrapPanel  Grid.Column="1">
                        </WrapPanel>
                    </Grid>
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="1*" />
                            <ColumnDefinition  Width="1*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel  Grid.Column="0">
                        </WrapPanel>
                        <Label  Content="幅宽:" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <WrapPanel  Grid.Column="1">
                            <TextBox  Grid.Column="1" Text="{Binding Path=WAFBRTL, Mode=TwoWay,  Converter={StaticResource ResourceKey=d10}}" VerticalAlignment="Center" Width="Auto" MinWidth="40" />
                        </WrapPanel>
                    </Grid>
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition   Width="1*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel  Grid.Column="0">
                        </WrapPanel>
                        <Label  Content="成品匹长:" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <WrapPanel  Grid.Column="1">
                            <TextBox   Grid.Column="1" Text="{Binding Path=WAFSTDLG, Mode=TwoWay,  Converter={StaticResource ResourceKey=d1000}}" VerticalAlignment="Center" Width="Auto" MinWidth="60" />
                        </WrapPanel>
                    </Grid>
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition   Width="1*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel  Grid.Column="0">
                        </WrapPanel>
                        <Label  Content="成品克重:" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <WrapPanel  Grid.Column="1">
                            <TextBox   Grid.Column="1" Text="{Binding Path=WAFGRLFD, Mode=TwoWay}" VerticalAlignment="Center" Width="Auto" MinWidth="60" />
                            <TextBlock>g/m</TextBlock>
                        </WrapPanel>
                    </Grid>
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="1*" />
                            <ColumnDefinition  Width="1*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel  Grid.Column="0">
                        </WrapPanel>
                        <Label  Content="纬密系数:" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <WrapPanel  Grid.Column="1">
                            <TextBox  Grid.Column="1" Text="{Binding Path=WALAEAEND, Mode=TwoWay,  Converter={StaticResource ResourceKey=d100}}" VerticalAlignment="Center" Width="Auto" MinWidth="20" />
                            <TextBlock >%</TextBlock>
                        </WrapPanel>
                    </Grid>
                </WrapPanel>
                <WrapPanel >
                    <TextBlock >坯布信息:</TextBlock>
                    <Grid  Margin="20,0,0,0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="1*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>
                        <Label Content="经密:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="-2,3,0,3" />
                        <TextBox Grid.Column="1" Text="{Binding Path=WARFDDIK, Mode=TwoWay,  Converter={StaticResource ResourceKey=d100}}" VerticalAlignment="Center" Width="60" />
                    </Grid>
                    <Grid  >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="1*" />
                            <ColumnDefinition  Width="1*" />
                        </Grid.ColumnDefinitions>
                        <Label  Content="下机纬密:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <TextBox   Grid.Column="1" Text="{Binding Path=WARFDDIS, Mode=TwoWay,  Converter={StaticResource ResourceKey=d100}}" VerticalAlignment="Center" Width="60" />
                    </Grid>

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition  Width="1*" />
                            <ColumnDefinition  Width="1*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel   Grid.Column="0">
                        </WrapPanel>
                        <Label  Content="幅宽:" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <WrapPanel   Grid.Column="1">
                            <TextBox  Grid.Column="1" Text="{Binding Path=WARWBRT, Mode=TwoWay,  Converter={StaticResource ResourceKey=d10}}" VerticalAlignment="Center" Width="Auto" MinWidth="60" />
                        </WrapPanel>
                    </Grid>
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition   Width="1*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel  Grid.Column="0">
                        </WrapPanel>
                        <Label  Content="标准匹长:" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <WrapPanel  Grid.Column="1">
                            <TextBox   Grid.Column="1" Text="{Binding Path=WARSTDLG, Mode=TwoWay,  Converter={StaticResource ResourceKey=d1000}}" VerticalAlignment="Center" Width="Auto" MinWidth="60" />
                        </WrapPanel>
                    </Grid>
                    <Grid >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition   Width="1*" />
                            <ColumnDefinition Width="1*" />
                        </Grid.ColumnDefinitions>
                        <WrapPanel  Grid.Column="0">
                        </WrapPanel>
                        <Label  Content="坯布克重:" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <WrapPanel  Grid.Column="1">
                            <TextBox   Grid.Column="1" Text="{Binding Path=WARGRLFD, Mode=TwoWay}" VerticalAlignment="Center" Width="Auto" MinWidth="60" />
                            <TextBlock>g/m</TextBlock>
                        </WrapPanel>
                    </Grid>
                </WrapPanel>
                <StackPanel  >
                    <WrapPanel  DataContext="{Binding Source={StaticResource ResourceKey=vwWTGEW}}">
                        <TextBlock  >工艺信息:</TextBlock>
                        <Grid   Margin="20,0,0,0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition   Width="1*" />
                                <ColumnDefinition   Width="1*" />
                            </Grid.ColumnDefinitions>
                            <Label  Content="机上纬密:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="-3,3,0,3" />
                            <TextBox  Grid.Column="1" Text="{Binding Path=WTGFDISM, Mode=TwoWay,  Converter={StaticResource ResourceKey=d100}, Source={StaticResource ResourceKey=vwWTGEW}}" VerticalAlignment="Center" Width="60" />
                        </Grid>
                        <Grid   Margin="10,0,0,0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition   Width="1*" />
                                <ColumnDefinition   Width="1*" />
                            </Grid.ColumnDefinitions>
                            <Label  Content="引纬纱长:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                            <TextBox   Grid.Column="1" Text="{Binding Path=WTGFDLGS, Mode=TwoWay,  Converter={StaticResource ResourceKey=d10}, Source={StaticResource ResourceKey=vwWTGEW}}" VerticalAlignment="Center" Width="60" />
                        </Grid>
                        <Grid  Margin="10,0,0,0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition  Width="1*" />
                                <ColumnDefinition  Width="1*" />
                            </Grid.ColumnDefinitions>
                            <Label   Content="筘幅:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                            <TextBox   Grid.Column="1" Text="{Binding Path=WTGWBBRT, Mode=TwoWay,  Converter={StaticResource ResourceKey=d10}, Source={StaticResource ResourceKey=vwWTGEW}}" VerticalAlignment="Center" Width="60" />
                        </Grid>
                        <TextBlock x:Uid="TextBlock_10">cm</TextBlock>
                        <Grid x:Uid="Grid_15" Margin="10,0,0,0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition x:Uid="ColumnDefinition_31" Width="1*" />
                                <ColumnDefinition x:Uid="ColumnDefinition_32" Width="1*" />
                            </Grid.ColumnDefinitions>
                            <Label x:Uid="Label_22" Content="筘号:" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                            <TextBox x:Uid="TextBox_17" Grid.Column="1" Text="{Binding Path=WTGWBF, Mode=TwoWay,  Converter={StaticResource ResourceKey=d100}, Source={StaticResource ResourceKey=vwWTGEW}}" VerticalAlignment="Center" Width="60" />
                        </Grid>
                        <TextBlock x:Uid="TextBlock_11" Width="11">#</TextBlock>
                    </WrapPanel>
                </StackPanel>
            </StackPanel>
        </Expander>
        <StackPanel>
         <Grid>
             <Grid.RowDefinitions>
                        <RowDefinition   Height="Auto" MaxHeight="300"/>
                        <RowDefinition   Height="Auto" MaxHeight="300"/>
                        <RowDefinition   Height="Auto"  MaxHeight="300"/>
                                </Grid.RowDefinitions>
             <Grid.ColumnDefinitions>
                                    <ColumnDefinition  Width="1*" />
                                    <ColumnDefinition  Width="1*" />
                                    <ColumnDefinition Width="1*" />
                                    <ColumnDefinition Width="1*" />
                                    <ColumnDefinition Width="1*" />
                                    <ColumnDefinition Width="1*" />
                                </Grid.ColumnDefinitions>
             <WrapPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="6">
                                    <Button Name="btnLogInfor" Click="btnLogInfor_Click" Height="40" Width="40">
                                        <Button.Background>
                                            <ImageBrush  ImageSource="/IntexReportClient;component/Images/Search.png" />
                                        </Button.Background>
                                    </Button>
                                    <Button Name="btnAutoRun" Click="btnAutoRun_Click" Height="40" Width="40" Content="自动">
                                        <Button.Background>
                            <ImageBrush  ImageSource="/IntexReportClient;component/Images/Reload.png" />
                                        </Button.Background>
                                    </Button>
                    <TextBox Name="IsRun"  TextChanged="IsRun_TextChanged">Y</TextBox>
                        <Button Name="btnStopRun" Click="btnStopRun_Click" Height="40" Width="40" Content="停止">
                                        <Button.Background>
                                            <ImageBrush  ImageSource="/IntexReportClient;component/Images/Delete.png" />
                                        </Button.Background>
                                    </Button>
                    <Label   Content="FInterID:" Width="Auto" Margin="0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                                    <TextBox Name="txtFInterID" Width="90"></TextBox>
                                    <Button Name="btnGetTechMaster" Click="btnGetTechMaster_Click" Height="40" Width="40">
                                        <Button.Background>
                                            <ImageBrush  ImageSource="/IntexReportClient;component/Images/Search.png" />
                                        </Button.Background>
                                    </Button>
                                    <Label   Content="小花号:" Width="Auto" Margin="0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                                    <TextBox  Name="txtCADART"  Text="{Binding Path=FClothNO, Source={StaticResource ResourceKey=vwTechMaster}}"
                                                                  MaxLength="20" Width="240" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="Pink" FontSize="18" AcceptsTab="True" CharacterCasing="Upper" 
                                                                  TextChanged="txtCADART_TextChanged"
                                                                  />
                    <TextBox  Name="txtCADCOLOR"  Text="{Binding Path=FColorNO, Source={StaticResource ResourceKey=vwTechMaster}}"
                                                                  MaxLength="20" Width="240" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="Pink" FontSize="18" AcceptsTab="True" CharacterCasing="Upper" 
                                                                  TextChanged="txtCADCOLOR_TextChanged"
                                                                  />
                    <TextBox  Name="txtCADVAR" MaxLength="2" Width="40" Margin="10,0,0,0" Text="" HorizontalAlignment="Left" Background="Pink" FontSize="18" AcceptsTab="True" CharacterCasing="Upper" />
                                    <Button Name="btnConvert2Intex" Click="btnConvert2Intex_Click" Height="40" Width="40">
                                        <Button.Background>
                                            <ImageBrush  ImageSource="/IntexReportClient;component/Images/Convert.png" />
                                        </Button.Background>
                                    </Button>
                                    <Button Name="btnUpload2Intex" Click="btnUpload2Intex_Click" Height="40" Width="40">
                                        <Button.Background>
                                            <ImageBrush  ImageSource="/IntexReportClient;component/Images/Upload.png" />
                                        </Button.Background>
                                    </Button>
                                    <Button Name="btnDelete2Intex" Click="btnDelete2Intex_Click" Height="40" Width="40">
                                        <Button.Background>
                                            <ImageBrush  ImageSource="/IntexReportClient;component/Images/Delete.png" />
                                        </Button.Background>
                                    </Button>
                    <TextBlock  Margin="20,0,0,0" Width="43" Height="24">颜色:</TextBlock>
                                    <TextBox  Name="txtCADWAFZUSATZ" Text="中色        " Background="#17000000" Height="27" Width="44"/>
                                    <TextBlock  Margin="20,0,0,0" Width="60" Height="24">后整理:</TextBlock>
                                    <TextBox  Name="txtCADFINISH" Text="F1          " Background="#17000000" Height="24" Width="53"/>
                                </WrapPanel>
             <DataGrid Grid.Row="1"  Grid.Column="0" Grid.ColumnSpan="3"  x:Name="dlgCADLogInfo"
                       ItemsSource="{Binding Source={StaticResource ResourceKey=vwLogInfo}}"  
                       AutoGenerateColumns="False" EnableRowVirtualization="True"
                       VerticalScrollBarVisibility="Auto"
                       HorizontalScrollBarVisibility="Auto"
                        MaxHeight="300"
                       VerticalAlignment="Stretch"
                       HeadersVisibility="Column" 
                       FontSize="12"
                       HorizontalAlignment="Stretch"
                       SelectionChanged="dlgCADLogInfo_SelectionChanged"
                        EnableColumnVirtualization="True">
                 <DataGrid.Columns>
                     <DataGridTextColumn Binding="{Binding Path=FInterID}" Header="FInterID" Width="Auto" MinWidth="80" />
                     <DataGridTextColumn Binding="{Binding Path=FProductNO}" Header="FProductNO" Width="Auto" MinWidth="100" />
                     <DataGridTextColumn Binding="{Binding Path=FClothNO}" Header="FClothNO" Width="Auto" MinWidth="80" />
                     <DataGridTextColumn Binding="{Binding Path=FDesignName}" Header="FDesignName" Width="Auto" MinWidth="80" />
                     <DataGridTextColumn Binding="{Binding Path=FEditDate}" Header="FEditDate" Width="Auto" MinWidth="80" />
                 </DataGrid.Columns>
             </DataGrid>
             <StackPanel Grid.Row="1"  Grid.Column="3" Grid.ColumnSpan="3">
                 <DataGrid  x:Name="dlgCADTechMaster"
                           ItemsSource="{Binding Source={StaticResource ResourceKey=vwTechMaster}}"  
                           AutoGenerateColumns="False" EnableRowVirtualization="True"
                           VerticalScrollBarVisibility="Auto"
                           HorizontalScrollBarVisibility="Auto"
                           HeadersVisibility="Column" 
                           FontSize="12"
                           MaxHeight="300"
                           Width="Auto" 
                           Height="Auto"
                           EnableColumnVirtualization="True">
                     <DataGrid.Columns>
                         <DataGridTextColumn Binding="{Binding Path=FClothNO}" Header="品种" Width="Auto" MinWidth="80" />
                         <DataGridTextColumn Binding="{Binding Path=FAssortment}" Header="描述" Width="Auto" MinWidth="100" />
                         <DataGridTextColumn Binding="{Binding Path=FDesignDate}" Header="设计时间" Width="Auto" MinWidth="80" />
                     </DataGrid.Columns>
                 </DataGrid>
                 <DataGrid  x:Name="dlgTechDetail"
                           ItemsSource="{Binding Source={StaticResource ResourceKey=vwTechDetail}}"  
                           AutoGenerateColumns="False" EnableRowVirtualization="True"
                           VerticalScrollBarVisibility="Auto"
                           HorizontalScrollBarVisibility="Auto"
                           HeadersVisibility="Column" 
                           FontSize="12"
                           MaxHeight="300"
                           SelectionChanged="dlgTechDetail_SelectionChanged"
                           EnableColumnVirtualization="True">
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=FThreadChar}" Header="FThreadChar" Width="Auto" MinWidth="80" />
                            <DataGridTextColumn Binding="{Binding Path=FCharValue}" Header="FCharValue" Width="Auto" MinWidth="80" />
                            <DataGridTextColumn Binding="{Binding Path=FThreadCode}" Header="FThreadCode" Width="Auto" MinWidth="80" />
                            <DataGridTextColumn Binding="{Binding Path=FThreadName}" Header="FThreadName" Width="Auto" MinWidth="80" />
                            <DataGridTextColumn Binding="{Binding Path=FThreadValue}" Header="FThreadValue" Width="Auto" MinWidth="80" />
                        </DataGrid.Columns>
                    </DataGrid>
                 <DataGrid x:Name="dlgCADTechBeaming"
                           ItemsSource="{Binding Source={StaticResource ResourceKey=vwTechBeaming}}"  
                           AutoGenerateColumns="False" EnableRowVirtualization="True"
                           VerticalScrollBarVisibility="Auto"
                           HorizontalScrollBarVisibility="Auto"
                           MaxHeight="400" MinHeight="400"
                           HeadersVisibility="Column" 
                           FontSize="12"
                           SelectionChanged="dlgCADTechBeamingr_SelectionChanged"
                           EnableColumnVirtualization="True">
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=FBeamingName}" Header="FBeamingName" Width="Auto" MinWidth="80" />
                            <DataGridTextColumn Binding="{Binding Path=FChar}" Header="FChar" Width="Auto" MinWidth="100" />
                            <DataGridTextColumn Binding="{Binding Path=FBeamingLength}" Header="FBeamingLength" Width="Auto" MinWidth="80" />
                        </DataGrid.Columns>
                    </DataGrid>
                </StackPanel>
            </Grid>
          </StackPanel> 
     </StackPanel>  
</local:DocumentBase>